package edu.gatech.ealf.secretservantplaf;

import java.awt.Graphics;

import javax.accessibility.Accessible;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.plaf.ComboBoxUI;
import javax.swing.plaf.ComponentUI;

public class SSComboBoxUI extends ComboBoxUI {
	private static final String UI_CLASS_ID = "ComboBoxUI";
	
	public SSComboBoxUI() {
    }

    public static ComponentUI createUI(JComponent c) {
        return new SSComboBoxUI();
    }

    @Override
    public void installUI(JComponent c) {
        
        SecretServantLookAndFeel.getInstance().registerComponentInstallation(UI_CLASS_ID, c);
    }


    @Override
    public void uninstallUI(JComponent c) {
    	
    	SecretServantLookAndFeel.getInstance().registerComponentUninstallation(UI_CLASS_ID, c);
    }

    @Override
    public void paint(Graphics g, JComponent c) {
    }
    
    @Override
    public void update(Graphics g, JComponent c) {
    }

	@Override
	public boolean isFocusTraversable(JComboBox arg0) {
		return false;
	}

	@Override
	public boolean isPopupVisible(JComboBox arg0) {
		return false;
	}

	@Override
	public void setPopupVisible(JComboBox arg0, boolean arg1) {
	}
	
	@Override
    public Accessible getAccessibleChild(JComponent c, int i) {
        return null;
    }
	
}
